<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">运营管理-&gt;活动列表列表</div>
    <div class="main_soso">
    <form action="/operator/search_campaign.shtml">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		    <td width="19" height="30" align="center"><img src="../images/clean_011.gif" width="16" height="16" /></td>
		    <td>
		     点击类型：<input name="campaign.clickType" value="${campaign.clickType}" type="text" size="8" style="width:80px;" class="inputwidth01" />
		   
		      </td>
		    <td align="left">
		      <input name="input7" type="submit" class="input01" value="搜索" />
		    </td>
		  </tr>
		</table>
    </form>
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
      
        
        
          <th width="5%">活动id</th>
          <th width="10%">点击类型</th>
          <th width="10%">图片</th>
          <th width="5%">排序 </th>      
          <th width="5%">banner </th>      
          <th width="20%">文字描述 </th>      
          <th width="10%">activity/target </th>      
          <th>操作</th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <c:forEach items="${page_list.list}" var="o">
	      <tr>
	         <td width="5%">${o.id}</td>
	         <td width="10%">${o.clickType}</td>
	         <td width="10%"><a href="javascript:void(0);" onclick="FW.op({height:380,url:'/operator/to_campaign_img.shtml?imgUrl=${o.imgUrl}',title:'查看图片'})" style="height:370px;">查看图片</a></td>
	         <td width="5%">${o.seq}</td>
	         <td width="5%">${o.playType}</td>
	         <td width="20%">${o.text}</td>
	         <td width="10%">${o.target}</td>
	         <td >
	            <a href="/operator/to_campaign.shtml?id=${o.id}">编辑</a>
	             <a href="javascript:deleteCampaign(${o.id})">删除</a>
	         </td>
	      </tr>
      </c:forEach>
    </table>
  </div>
  
  <app:page></app:page>
  
  
</div>
</body>
</html>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/page.js"></script>
<script type="text/javascript" src="/scripts/xhr.js"></script>
<script type="text/javascript" src="/scripts/common.js"></script>
<script type="text/javascript">
  
  function deleteCampaign(id){
	   if(confirm("确定删除此活动吗?")){
		    function cb(d){
	           window.location.reload();
	        }	 
	     new xhr('/operator/delete_campaign.shtml',cb).setParameter("id",id).execute();
	   }
   }

</script>
<script type="text/javascript">
   function convertHotPush(id,type){
	   if(confirm("确定设置为热推?")){
		    function cb(d){
	    	 alert(d);
	        }	 
	     new xhr('/daily/su_convert_hot_push.shtml',cb).setParameter("push.pushSid",id).setParameter("push.pushType",type).execute();
	   }
   }

</script>